#include "SRVarNode.h"

SRVarNode::SRVarNode(Box* pBox,char value)
:m_pBox( pBox )
{
	m_value=value;//this->m_pBox->charValue(value);
}

SRVarNode::~SRVarNode(void)
{
}

double SRVarNode::valueD(int FCNo)
{
	//std::cout<<"\t?? SRVN::val "<<this->m_value<<" "<<this->m_pBox->charValue(this->m_value,FCNo)<<std::endl;
	return this->m_pBox->charValue(this->m_value, FCNo);
}

bool SRVarNode::addNode(const char* c)
{
 
	return false;
}

void SRVarNode::print()
{
	std::cout<<this->m_value;
}

void SRVarNode::printValue()
{
	std::cout<<this->m_value;
}

bool SRVarNode::hasPlace()
{
	return false;
}